package atom.core3.spring.listener;

import javax.servlet.ServletContextEvent;

import org.springframework.web.context.ContextLoaderListener;

import atom.core3.spring.util.SpringContext;

public class MyContextLoaderListener extends ContextLoaderListener{
    public void contextInitialized(ServletContextEvent sce)
    {
    	super.contextInitialized(sce);
    	//在最早的时间加载SpringContext
    	SpringContext.getInstance().initWebContext(sce.getServletContext());
    }
    

    public void contextDestroyed(ServletContextEvent sce)
    {
    	super.contextDestroyed(sce);
    }
}
